/**
 * @file list.h
 * @author ThomasKingFree (dulu150@126.com)
 * @brief 链表实现
 * @version 0.1
 * @date 2021-03-14
 *
 * @copyright Copyright (c) 2021
 *
 */

#ifndef YUE_GUI_LIST_H
#define YUE_GUI_LIST_H

#include <cstdint>

namespace YueGUI {
namespace TinyStd {
class Vector {
public:
    Vector() = delete;
    Vector(int size);
    ~Vector();

    bool Add(void *node);
    bool Remove(void *node);
    bool Insert(void *node, void *next);
    bool Clear();

private:
    uint8_t size_ = 0;
    uint8_t tail_ = 0;
    void **data_ = nullptr;
};
} // namespace TinyStd
} // namespace YueGUI
#endif // YUE_GUI_LIST_H
